import { createPinia } from 'pinia'
import { dictStore } from './modules/dict'
import { userStore } from './modules/user'
import { sysConfigStore } from './modules/sysConfig'

const pinia = createPinia()
pinia.init = function () {
  pinia.userStore = userStore(pinia)
  pinia.dictStore = dictStore(pinia)
  pinia.sysConfigStore = sysConfigStore(pinia)
}
export default pinia
